package com.eshipenet.shipnet.ship;

public class Page {

   private   int startIndex;
   private  int endIndex;
   private  int pages;
   private  boolean hasNextPage;
   private  boolean hasPreviousPage;

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public boolean isHasPreviousPage() {
        return hasPreviousPage;
    }

    public void setHasPreviousPage(boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
    }

    public Page(int startIndex, int endIndex, int pages, boolean hasNextPage, boolean hasPreviousPage) {
        this.startIndex = startIndex;
        this.endIndex = endIndex;
        this.pages = pages;
        this.hasNextPage = hasNextPage;
        this.hasPreviousPage = hasPreviousPage;
    }

    @Override
    public String toString() {
        return "Page{" +
                "startIndex=" + startIndex +
                ", endIndex=" + endIndex +
                ", pages=" + pages +
                ", hasNextPage=" + hasNextPage +
                ", hasPreviousPage=" + hasPreviousPage +
                '}';
    }
}

